import  http  from "@/utils/http"
//精选方案
export const Plans = data =>
    http.get('/match/minfo/duixian_plans',data)
//近10场比赛
export const historyLastTen = data =>
    http.post('/match/minfo/duixian_history?type=last_10',data)
//订阅方案
export const buyPlan = data =>
    http.post('/match/minfo/duixian_plan/buy',data)







export const Leagues = data =>
    http.get('/match/leagues')

export const myPlans = data =>
    http.get('/match/minfo/my_plans',data)

//我的方案[提示接口]
export const myPlansNew = data =>
    http.get('/match/minfo/my_plans_new',data)

//对线数据
export const ftInplay = data =>
    http.post('/match/minfo/duixian?fetch=ft:inplay',data)

//配置过滤器(新增&修改)
export const setFilter = data =>
    http.post('/match/set_filter',data)

//复制方案
export const copyPlan = data =>
    http.post('/match/minfo/duixian_plan/copy',data)

//删除方案
export const deletePlan = data =>
    http.delete(`/match/delete_filter?code=${data.code}`,data)
